home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Professional Soft Collection 1.02
/
Professional Soft Collection 1.02.iso
/
communic
/
bitfax.300
/
disk1
/
password.sc_
/
password.bin
Wrap
Text File
|
1994-04-19
|
1KB
|
28 lines
{PASSWORD.ACT}
{This file asks the user for a password, then checks it for correctness. }
{The user then has three chances to enter the correct password. To use }
{this file, simply copy it into your own Script or Action file. This }
{Action file uses a built-in password. PARPASS.ACT uses a password which }
{is passed as a parameter by the calling program.}
@C=0 {Set counter of attempts to 0}
:Loop1
@C=EXPR(@C+1) {Increment number of attempts}
IF (@C > 3) GOTO :Rejected {If too many attempts, exit}
@a=PROMPT("Enter password: "); {Get password from user}
IF(@a <> "pass3876") GOTO :Loop1 {If built-in password not matched, retry}
{If password is correct, execution will "fall through" to this step}
GOTO :PassWordOK {Jump to end}
{If password is incorrect, execution jumps to this step}
:Rejected
TYPE("Incorrect password entered. Hanging up.")
HANGUP {Tell BitCom to hang up}
"AT0$0d" {Tell modem to hang up}
:PassWordOK
{Normal execution continues below}